//
// Created by mio on 25-4-10.
//

#include <iostream>
#include "TcpServer.h"
#include "EventLoop.h"

int main()
{
    uint32_t count = std::thread::hardware_concurrency();
    std::cout << "count: " << count << "\n";
    EventLoop loop(count);
    TcpServer* server = new TcpServer(&loop);
    server->Start("127.0.0.1", 8888);
    std::cout << "Server Start\n";
    getchar();
    server->Stop();
    std::cout << "Server Stop\n";
    return 0;
}